<?php

namespace App\Services\Proxy;

use GuzzleHttp\Client;

class CapCutProxy extends _BaseProxy
{

    protected $host = 'https://commerce-api-sg.capcut.com';
    public function handle()
    {
        $format = $this->method == 'GET' ? 'query' : 'json';
        return (new Client())->request($this->method, $this->host . $this->path, [
            'timeout' => $this->timeout,
            $format   => $this->params,
        ]);
    }
}
